package com.purchase.ml.bean.req.dealer;

import com.purchase.ml.bean.req.BaseDto;
import com.purchase.ml.consts.Constants;
import com.purchase.ml.entity.dealer.SysAddr;
import com.purchase.ml.entity.dealer.SysDealer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author :zxm
 * @date :2021/2/25 14:00
 * @description :some description
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "修改商户model")
public class SysDealerEditDto extends SysDealer implements Serializable {//todo：main: 继承对象只能是PageDto或者无集成
    @ApiModelProperty(value = "主键id",required = true)
    @NotNull(message = "ID tidak boleh kosong")
    private Long id;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;
    /**
     * 经销商名称2
     */
    @ApiModelProperty(value = "经销商名称2")
    private String lastName;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    @NotBlank(message = "Nombor telefon tidak boleh kosong")
    private String phoneNumber;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    private String logoUrl;
    /**
     * 状态：0申请；1通过；2禁用
     */
    @ApiModelProperty(value = "状态：0申请；1通过；2禁用")
    private Integer state = Constants.DEALER_STATE_REQ;
    /**
     * 账单信息
     */
    @ApiModelProperty(value = "账单地址信息")
    @NotNull(message = "Alamat bil tidak boleh kosong")
    private SysAddr billingAddr;
    /**
     * 收货地址
     */
    @ApiModelProperty(value = "收货地址信息")
    @NotNull(message = "Alamat penghantaran tidak boleh kosong")
    private SysAddr shopAddr;

    @ApiModelProperty(value = "01234 分别对应中东西南北")
    private Integer region;
}
